var t = getApp();

Page({
    data: {},
    onLoad: function(t) {
        this.setData({
            id: t.id,
            store_id: t.store_id
        }), this.getdata();
    },
    onClickLeft: function() {
        wx.navigateBack({
            delta: 1
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        wx.showLoading({
            title: "加载中"
        });
        var o = this, n = t.getNetAddresss("plugin.store-card.Frontend.Modules.Verifier.Controllers.qr.index");
        t._postNetWork({
            url: n,
            data: {
                hold_id: o.data.id,
                store_id: o.data.store_id
            },
            success: function(t) {
                var n = t.data;
                wx.hideLoading({
                    success: function(t) {}
                }), 1 == n.result ? (console.log(n), o.setData({
                    qr: n.data.qr
                })) : wx.showToast({
                    title: n.msg,
                    duration: 1e3,
                    icon: "none"
                });
            },
            fail: function(t) {
                console.log(t.msg);
            }
        });
    }
});